import api from '../request/request.js'

// 登录 调用的是nodejs服务的接口 nodejs服务文件夹是workspace
function getLogin(data) {
	// console.log('急急急')
	return api.request({
		method: 'GET',
		url: '/use',
		data: data,
		ContentType: ''
	})
}
//工单处理
function fixWorkOrder(data, generateBoundary) {
	console.log(generateBoundary)
	return api.request({
		method: 'get',
		url: '/use',
		data: data,
		// ContentType: 'application/json;charset=utf-8', //application/x-www-form-urlencoded 
		// ContentType: 'multipart/form-data;boundary=' + generateBoundary,
		// ContentType: 'application/x-www-form-urlencoded;boundary=' + generateBoundary,
		// ContentType: 'application/x-www-form-urlencoded',


	})
}

export {
	// getPhotoImg,
	// getCode,
	getLogin,
	fixWorkOrder
}